#include <iostream>
#include "locationsave.h"
#include <string>
#include <cstring>
using namespace std;

Locationsave::Locationsave(){
       name_[0] = '\0';
       description_[0] = '\0';
       restrictions_[0] = '\0';
       items_[0] = '\0';
       locations_[0] = '\0';
}

void Locationsave::setName(string name){
       strncpy(name_,name.data(),name.size());
       name_[name.size()+1] = '\0';
}
       
void Locationsave::setDescription(string description){
       strncpy(description_,description.data(),description.size());
       description_[description.size()+1] = '\0';
}

void Locationsave::setRestrictions(string restrictions){
       strncpy(restrictions_,restrictions.data(),restrictions.size());
       restrictions_[restrictions.size()+1] = '\0';
}
       
void Locationsave::setItems(string items){
       strncpy(items_,items.data(),items.size());
       items_[items.size()+1] = '\0';
}
       
void Locationsave::setLocations(string locations){
       strncpy(locations_,locations.data(),locations.size());
       locations_[locations.size()+1] = '\0';
}
       
string Locationsave::getName(){
       return (string)name_;
}
       
string Locationsave::getDescription(){
       return (string)description_;
}

string Locationsave::getRestrictions(){
       return (string)restrictions_;
}

string Locationsave::getItems(){
       return (string)items_;
}
       
string Locationsave::getLocations(){
       return (string)locations_;
}
